<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			body{
				width: 800px;
				height: 400px;
				border: 1px solid pink;
			}
			
			#box{
				margin: 100px auto;
				width: 200px;
				height: 200px;
				background: pink;
				transition: 3s;
			}
			
			body:hover #box{
				transform: rotate(360deg);
			}
		</style>
	</head>
	<body>
		<div id="box">
			nmx
		</div>
	</body>
</html>
